package hcn.protocol.brandnew.zhenliao.chufang;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 外延处方查询 - ODS_03020003
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetHistoryEpitaxialDrugsRequest extends BaseRequest {

    /**
     * 查询参数
     */
    @XmlElement(name = "QueryData")
    private QueryData queryData;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class QueryData {

        /**
         * 就诊医疗机构组织机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 区域内患者唯一标识
         */
        @XmlElement(name = "MPI")
        private String mpi;
        /**
         * 业务系统患者档案ID
         */
        @XmlElement(name = "SourcePatientId")
        private String sourcePatientId;
        /**
         * 开始时间
         */
        @XmlElement(name = "BeginTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date beginTime;
        /**
         * 结束时间
         */
        @XmlElement(name = "EndTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date endTime;
    }

}
